|
PHY MAKE RIGID BODY STATIC MESHES
Takes an object and makes a multi shape rigid body for it from all of its limbs using meshes.
phy make rigid body static meshes ID phy make rigid body static meshes ID, material phy make rigid body static meshes ID, file$ phy make rigid body static meshes ID, file$, material
ID
identification number of the 3D object that you want to be represented by a collection of static meshes in the simulation
material
this parameter is optional, a material can be specified if required upon creation, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its restitution
file$
this parameter is optional and when used the data from the object will be saved out to the specified file, this can be useful for some complex objects as the computational time may be long, this file can later be loaded in much faster using the command phy load rigid body static meshes
This command does not return a value.
This is particularly useful in cases where more complex objects are required than the standard box, sphere and capsule.
Note that this command operates on limbs / meshes in an object so this determines how the object is represented. Having only one limb / mesh in the object will result in only one rigid body mesh being created so it is important to ensure the model you are using is set up correctly so in the case of a table make sure each component is a separate limb / mesh within the model hierarchy. As the object is represented by a collection of static rigid body meshes it will remain immoveable and will not be affected by forces such as gravity etc. This makes static objects ideal candidates for level scenery.
|